package com.example.mapper;

import com.example.entity.Category;
import com.example.entity.Customer;
import com.example.entity.Foodtable;
import com.example.entity.Menu;
import org.apache.ibatis.annotations.*;

import java.util.List;
@Mapper
public interface CategoryMapper {
    @Select("select * from category")
    List<Category> findcategoryAll();
    @Insert("insert into category(id, name, sort) VALUE(#{id},#{name},#{sort})")
    void insert(Category category);
    @Delete("DELETE FROM category WHERE id = #{id}")
    void delete(Integer id);
    void updata(Category category);

    List<Category> selectByPage(String name);
}
